<?php

namespace App\Models\Factory\V2;

use App\Helpers\Utils;
use App\Models\AbsModelFactory;
use App\Models\Orm\DataProductApplyLog;
use App\Models\Orm\Delivery;
use App\Models\Orm\DeliveryCount;
use App\Helpers\Logger\SLogger;
use App\Models\Orm\DeliveryLog;
use App\Models\Orm\SecondsKill;
use App\Models\Orm\UserDelivery;

/**
 * 秒杀操作
 */
class SecondsKillFactory extends AbsModelFactory
{

    /**
     * 获取秒杀数据
     * @return array
     */
    public static function GetList()
    {
        $date = date("Y-m-d",time());
        $result = SecondsKill::where(['status'=>1])->where('start_date','<=',$date)->where('end_date','>=',$date)->get();
        return $result ? :[];
    }



    
}
